package com.fcai.microserv.autoconfigure.cors;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

import static com.fcai.microserv.autoconfigure.cors.CorsProperties.PREFIX;

@ConfigurationProperties(PREFIX)
@Data
public class CorsProperties {
    public final static String PREFIX= "fcai.microserv.cors";

    private String[] allowedOrigins = {};
    private String[] allowedHeaders = {};
    private String[] allowedMethods = {};
    private boolean allowCredentials = true;
    private long MaxAge = 3600L;
}
